<?php 
    $dateTimeNow = MyDateTime::getCurrentTime('now', false); 
    $dateTimeDest = MyDateTime::getCurrentTime('2013-10-01 08:00', false);
    $time = $dateTimeDest->getTimestamp() - $dateTimeNow->getTimestamp();

    if(isset($_GET['test_count'])){
        echo '<pre>';print_r($dateTimeNow->format("Y-m-d H:i:s"));echo '</pre>';
        echo '<pre>';print_r($dateTimeDest->format("Y-m-d H:i:s"));echo '</pre>';
    }
    if($time>0):?>
    <link rel="stylesheet" href="/files/js/flipclock/css/flipclock.css">
    <script src="/files/js/flipclock/js/flipclock/libs/prefixfree.min.js"></script>    
    <script src="/files/js/flipclock/js/flipclock/flipclock.min.js"></script>
    <script type="text/javascript">
        $(function(){
            var clock = $('#flipclock').FlipClock(<?php echo $time?>, {
                //clockFace: 'DailyCounter',
                countdown: true
            });
        });
    </script>
    <div id="countdown">
        <h3>Ngày khai trương chỉ còn</h3>
        <br/>
        <br/>
        <div id="flipclock"></div>
        <br/>
        <br/>
        <br/>
    </div>
    <?php endif;?>